<template>
	<router-view v-slot="{ Component }">
		<keep-alive :include="includes">
			<component :is="Component" />
		</keep-alive>
	</router-view>
</template>

<script setup lang="ts">
import {
	computed,
} from 'vue'
import {
	useStore
} from 'vuex'
const store = useStore()
const includes = computed(() => {
	return store.state.tabs.filter((item: any) => item.meta && item.meta.useCache).map((item: any) =>
		item.name)
})
</script>

<style>
</style>
